package global

import (
	"github.com/garyburd/redigo/redis"
	ut "github.com/go-playground/universal-translator"
	"github.com/hdt3213/delayqueue"
	umeng_push "github.com/huangfuhui/umeng-push"
	"github.com/panjf2000/ants/v2"
	"go.mongodb.org/mongo-driver/mongo"
	"go.uber.org/zap"
	"gorm.io/gorm"
	"lz/config"
)

var (
	ServerConfig *config.ServerConfig = &config.ServerConfig{}
	//MySQL数据库
	DB          *gorm.DB
	RedisDB     *redis.Pool
	Tsrans      ut.Translator
	MongoDb     *mongo.Database
	UmengPush   *umeng_push.UmengPush
	AntsPool    *ants.Pool
	PLog        *zap.Logger
	DQueue      *delayqueue.DelayQueue
	NacosConfig *config.NacosConfig = &config.NacosConfig{}
	//GVA_Timer     utils.Timer = utils.NewTimerTask()

)

const (
	TypeTaskPushDelivery = "push:deliver"
	TypeEmailDelivery    = "push:deliver"
)
